package com.duowei.diandan.db.entry;

import android.arch.persistence.room.Entity;
import android.arch.persistence.room.PrimaryKey;

import org.joda.time.LocalDate;
import org.joda.time.LocalDateTime;
import org.joda.time.LocalTime;

/**
 * 买赠/加价促销设置基本信息
 */
@SuppressWarnings("ALL")
@Entity
public class Mzszjbxx {
    @PrimaryKey(autoGenerate = true)
    private long id;

    private String bm;
    private String mc;
    private LocalTime kssj;
    private LocalTime jssj;
    private LocalDate ksrq;
    private LocalDate jsrq;
    private String xmbh;
    private String xmmc;
    private String dw;
    private String lbbm;
    private String lbmc;
    private String z1;
    private String z2;
    private String z3;
    private String z4;
    private String z5;
    private String z6;
    private String z7;
    private String xgr;
    private LocalDateTime xgsj;
    // jbby1 1买赠 2 加价促销
    private String jbby1;
    private String jbby2;
    private Float jbby3;
    private Float jbby4;
    private LocalDateTime jbby5;
    private String bz;

    public Mzszjbxx() {
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getBm() {
        return bm;
    }

    public void setBm(String bm) {
        this.bm = bm;
    }

    public String getMc() {
        return mc;
    }

    public void setMc(String mc) {
        this.mc = mc;
    }

    public LocalTime getKssj() {
        return kssj;
    }

    public void setKssj(LocalTime kssj) {
        this.kssj = kssj;
    }

    public LocalTime getJssj() {
        return jssj;
    }

    public void setJssj(LocalTime jssj) {
        this.jssj = jssj;
    }

    public LocalDate getKsrq() {
        return ksrq;
    }

    public void setKsrq(LocalDate ksrq) {
        this.ksrq = ksrq;
    }

    public LocalDate getJsrq() {
        return jsrq;
    }

    public void setJsrq(LocalDate jsrq) {
        this.jsrq = jsrq;
    }

    public String getXmbh() {
        return xmbh;
    }

    public void setXmbh(String xmbh) {
        this.xmbh = xmbh;
    }

    public String getXmmc() {
        return xmmc;
    }

    public void setXmmc(String xmmc) {
        this.xmmc = xmmc;
    }

    public String getDw() {
        return dw;
    }

    public void setDw(String dw) {
        this.dw = dw;
    }

    public String getLbbm() {
        return lbbm;
    }

    public void setLbbm(String lbbm) {
        this.lbbm = lbbm;
    }

    public String getLbmc() {
        return lbmc;
    }

    public void setLbmc(String lbmc) {
        this.lbmc = lbmc;
    }

    public String getZ1() {
        return z1;
    }

    public void setZ1(String z1) {
        this.z1 = z1;
    }

    public String getZ2() {
        return z2;
    }

    public void setZ2(String z2) {
        this.z2 = z2;
    }

    public String getZ3() {
        return z3;
    }

    public void setZ3(String z3) {
        this.z3 = z3;
    }

    public String getZ4() {
        return z4;
    }

    public void setZ4(String z4) {
        this.z4 = z4;
    }

    public String getZ5() {
        return z5;
    }

    public void setZ5(String z5) {
        this.z5 = z5;
    }

    public String getZ6() {
        return z6;
    }

    public void setZ6(String z6) {
        this.z6 = z6;
    }

    public String getZ7() {
        return z7;
    }

    public void setZ7(String z7) {
        this.z7 = z7;
    }

    public String getXgr() {
        return xgr;
    }

    public void setXgr(String xgr) {
        this.xgr = xgr;
    }

    public LocalDateTime getXgsj() {
        return xgsj;
    }

    public void setXgsj(LocalDateTime xgsj) {
        this.xgsj = xgsj;
    }

    public String getJbby1() {
        return jbby1;
    }

    public void setJbby1(String jbby1) {
        this.jbby1 = jbby1;
    }

    public String getJbby2() {
        return jbby2;
    }

    public void setJbby2(String jbby2) {
        this.jbby2 = jbby2;
    }

    public Float getJbby3() {
        return jbby3;
    }

    public void setJbby3(Float jbby3) {
        this.jbby3 = jbby3;
    }

    public Float getJbby4() {
        return jbby4;
    }

    public void setJbby4(Float jbby4) {
        this.jbby4 = jbby4;
    }

    public LocalDateTime getJbby5() {
        return jbby5;
    }

    public void setJbby5(LocalDateTime jbby5) {
        this.jbby5 = jbby5;
    }

    public String getBz() {
        return bz;
    }

    public void setBz(String bz) {
        this.bz = bz;
    }


    public static String querySql() {
        return "SELECT bm, mc, kssj, jssj, ksrq, jsrq, xmbh, xmmc, dw, lbbm, lbmc, z1, z2, z3, " +
                "z4, z5, z6, z7, xgr, xgsj, jbby1, jbby2, jbby3, jbby4, jbby5, bz FROM MZSZJBXX|";
    }
}
